package net.msonic.demoLib;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.widget.Toast;

public class ActivityBase extends Activity {

    private static String TAG = "demoLib";

    /**
     * Called when the activity is first created.
     * @param savedInstanceState If the activity is being re-initialized after 
     * previously being shut down then this Bundle contains the data it most 
     * recently supplied in onSaveInstanceState(Bundle). <b>Note: Otherwise it is null.</b>
     */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
		Log.i(TAG, "onCreate");
        setContentView(R.layout.main);
    }
    
    public void showMessage(String message){
    	Toast.makeText(getApplicationContext(), 
    			message, Toast.LENGTH_SHORT).show();    
    	
    	
    	Toast.makeText(getApplication(), 
    			R.string.app_name, Toast.LENGTH_SHORT).show();
    	
    }

}

